package com.hangxin.basic.util;

import javax.servlet.http.HttpServletRequest;

public class StepSessionUtil {
	
	/**
	 * 是否已经通过第一步表单提交
	 * @author ljl
	 * @since 2017-03-24 19:55
	 * @param request
	 * @return 结果
	 */
	public static boolean passFirstStep(HttpServletRequest request) {
		
		String result = request.getSession().getAttribute("passFirstStep")+"";
		
		if("true".equals(result)){
			return true;
		}
		return false;
	}
	
	/**
	 * 是否已经通过第二步表单提交
	 * @author ljl
	 * @since 2017-03-24 19:55
	 * @param request
	 * @return 结果
	 */
	public static boolean passSecondStep(HttpServletRequest request) {
		
		String result = request.getSession().getAttribute("passSecondStep")+"";
		
		if("true".equals(result)){
			return true;
		}
		return false;
	}
	
	/**
	 * 是否已经通过第三步表单提交
	 * @author ljl
	 * @since 2017-03-24 19:55
	 * @param request
	 * @return 结果
	 */
	public static boolean passThirdStep(HttpServletRequest request) {
		
		String result = request.getSession().getAttribute("passThirdStep")+"";
		
		if("true".equals(result)){
			return true;
		}
		return false;
	}
	
	/**
	 * 是否已经通过第四步表单提交
	 * @author ljl
	 * @since 2017-03-24 19:55
	 * @param request
	 * @return 结果
	 */
	public static boolean passFourthStep(HttpServletRequest request) {
		
		String result = request.getSession().getAttribute("passFourthStep")+"";
		
		if("true".equals(result)){
			return true;
		}
		return false;
	}
	
}
